﻿Imports Control_Vuelos_BE
Imports Control_Vuelos_ADO

Public Class ConsolidadoBL
    Private ReadOnly _Consolidado As New ConsolidadoADO()

    Public Function ActualizarProvision(ByVal pConsolidado As ConsolidadoBE) As Boolean
        Return _Consolidado.ActualizarProvision(pConsolidado)
    End Function

    Public Function ActualizarProvisionManifiesto(ByVal sVuelo As String, ByVal sTicket As String) As Boolean
        Return _Consolidado.ActualizarProvisionManifiesto(sVuelo, sTicket)
    End Function

    Public Function ActualizarProvisionManifiestoDetalle(ByVal sVuelo As String, ByVal nReserva As Integer, ByVal sItem As String, ByVal sComunidad As String, nPasaje As Decimal, ByVal lNoEditar As Boolean) As Boolean
        Return _Consolidado.ActualizarProvisionManifiestoDetalle(sVuelo, nReserva, sItem, sComunidad, nPasaje, lNoEditar)
    End Function

    Public Function ActualizarProvisionManifiestoProducto(ByVal sVuelo As String, ByVal lFlag As Boolean) As Boolean
        Return _Consolidado.ActualizarProvisionManifiestoProducto(sVuelo, lFlag)
    End Function

    Public Function CargarCabeceraManifiesto(ByVal sFchVuelo As String) As DataTable
        Return _Consolidado.CargarCabeceraManifiesto(sFchVuelo)
    End Function

    Public Function CargaCorrelativoTicket() As String
        Return _Consolidado.CargaCorrelativoTicket()
    End Function

    Public Function CargarDetalleManifiesto(ByVal sCodVuelo As String) As DataTable
        Return _Consolidado.CargarDetalleManifiesto(sCodVuelo)
    End Function

    Public Function EliminarProvision(ByVal sTicket As String) As Boolean
        Return _Consolidado.EliminarProvision(sTicket)
    End Function

    Public Function GenerarAsiento(ByVal sTicket As String, sAnoMes As String, sCodAsn As String, sNroAsn As String) As String
        Return _Consolidado.GenerarAsiento(sTicket, sAnoMes, sCodAsn, sNroAsn)
    End Function

    Public Function ListarConsolidado(ByVal sFiltro As String) As DataTable
        Return _Consolidado.ListarConsolidado(sFiltro)
    End Function

    Public Function ListarTickets(ByVal sFiltro As String) As DataTable
        Return _Consolidado.ListarTickets(sFiltro)
    End Function

    Public Function TraerProvision(ByVal snroticket As String) As ConsolidadoBE
        Return _Consolidado.TraerProvision(snroticket)
    End Function
End Class
